package com.yenlien.traceyun.plant.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yenlien.traceyun.business.entity.Equipment;
import com.yenlien.traceyun.business.entity.TraceScanEntity;
import com.yenlien.traceyun.business.trace.Trace;

import java.util.List;

/**
 * 数字地图
 *
 * @author maybe
 * @date 2020年7月23日
 */

@Deprecated
@Entity
@Table(name = "t_plant_soil")
//@Trace(appName = "plant",stepName = "soil", order = 0, ended = false)
public class Soil extends TraceScanEntity {
    @Column
    private String name;                //名称
    @Column
    private String area;                //面积
    @Column
    private int type;                    //类型(1:基地，2：地块，3：仓库，4：建筑，5：全景图)
    @Column
    private String color;                //颜色
    @Column
    private String diaphaneity;            //透明度
    @Column
    private String peasantId;            //农户ID
    @Column
    private String peasantName;            //农户姓名
    @Column
    private String principalId;            //种植管理员ID
    @Column
    private String principalName;        //种植管理员姓名
    @Column
    private String coordinate;            //坐标
    @Column
    private String soilImg;                //地块全景图
    @Column
    private String imgTime;                //拍摄时间
    @Column
    private int isExist;                //是否存在(0:存在，1：已删除)
    @Column
    private String pid;                    //所属上级
    @Column
    private String jyImg;           //种植的济源图片
    @Transient
    private int state;                    //种植状态(0:休耕；1：种植中)

    @Transient
    private List<Equipment> equipments; //设备

    @Transient
    private List<SoilEquipment> soilEquipments;//设备和地块信息

    @Transient
    private String pName;    //所属上级


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getDiaphaneity() {
        return diaphaneity;
    }

    public void setDiaphaneity(String diaphaneity) {
        this.diaphaneity = diaphaneity;
    }

    public String getPeasantId() {
        return peasantId;
    }

    public void setPeasantId(String peasantId) {
        this.peasantId = peasantId;
    }

    public String getPeasantName() {
        return peasantName;
    }

    public void setPeasantName(String peasantName) {
        this.peasantName = peasantName;
    }

    public String getPrincipalId() {
        return principalId;
    }

    public void setPrincipalId(String principalId) {
        this.principalId = principalId;
    }

    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getSoilImg() {
        return soilImg;
    }

    public void setSoilImg(String soilImg) {
        this.soilImg = soilImg;
    }

    public String getImgTime() {
        return imgTime;
    }

    public void setImgTime(String imgTime) {
        this.imgTime = imgTime;
    }

    public int getIsExist() {
        return isExist;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public void setIsExist(int isExist) {
        this.isExist = isExist;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<Equipment> getEquipments() {
        return equipments;
    }

    public void setEquipments(List<Equipment> equipments) {
        this.equipments = equipments;
    }

    public String getJyImg() {
        return jyImg;
    }

    public void setJyImg(String jyImg) {
        this.jyImg = jyImg;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public List<SoilEquipment> getSoilEquipments() {
        return soilEquipments;
    }

    public void setSoilEquipments(List<SoilEquipment> soilEquipments) {
        this.soilEquipments = soilEquipments;
    }
}
